import request from '@/utils/request'

// 查询课程老师关联列表
export function listCourseteacher(query) {
  return request({
    url: '/feedback/courseteacher/list',
    method: 'get',
    params: query
  })
}

// 查询课程老师关联详细
export function getCourseteacher(id) {
  return request({
    url: '/feedback/courseteacher/' + id,
    method: 'get'
  })
}

// 新增课程老师关联
export function addCourseteacher(data) {
  return request({
    url: '/feedback/courseteacher',
    method: 'post',
    data: data
  })
}

// 修改课程老师关联
export function updateCourseteacher(data) {
  return request({
    url: '/feedback/courseteacher',
    method: 'put',
    data: data
  })
}

// 删除课程老师关联
export function delCourseteacher(id) {
  return request({
    url: '/feedback/courseteacher/' + id,
    method: 'delete'
  })
}
